import { BaseWindow } from "../../../component/window/BaseWindow";
import { GBox } from "../../../../com/mui/containers/GBox";
import { ComboBox } from "../../../../fl/controls/ComboBox";
import { GTextInput } from "../../../../com/mui/controls/GTextInput";
import { Button } from "../../../../fl/controls/Button";
import { HTMLUtil } from "../../../../com/gengine/utils/HTMLUtil";
import { GameRMI } from "../../net/rmi/GameRMI";
import { AMI_ITest_modifyAboutAchieve } from "../../../../Message/Game/AMI_ITest_modifyAboutAchieve";
import { DataProvider } from "../../../../fl/data/DataProvider";
import { GButton } from "../../../../com/mui/controls/GButton";
import { ObjCreate } from "../common/ObjCreate";
import { GBoxDirection } from "../../../../com/mui/containers/globalVariable/GBoxDirection";
import { ModifyFieldConfig } from "../../resource/ModifyFieldConfig";
import { TModifyFieldConfig } from "../../../../Message/Db/Tables/TModifyFieldConfig";
import { AMI_ITest_modifyFieldValue } from "../../../../Message/Game/AMI_ITest_modifyFieldValue";
import { GameController } from "../../mvc/GameController";
import { EPrictUnit } from "../../../../Message/Public/EPrictUnit";
import { Game } from "../../Game";
import { Cache } from "../../cache/Cache";
import { ItemData } from "../../resource/info/ItemData";
import { GameProxy } from "../../mvc/GameProxy";
import { AMI_ITest_endTask } from "../../../../Message/Game/AMI_ITest_endTask";
import { AMI_ITest_test } from "../../../../Message/Game/AMI_ITest_test";
import { AMI_ITest_addMoney } from "../../../../Message/Game/AMI_ITest_addMoney";
import { AMI_ITest_addLifeOrMana } from "../../../../Message/Game/AMI_ITest_addLifeOrMana";
import { AMI_ITest_addAnger } from "../../../../Message/Game/AMI_ITest_addAnger";
import { AMI_ITest_addExperience } from "../../../../Message/Game/AMI_ITest_addExperience";
import { AMI_ITest_updateLevel } from "../../../../Message/Game/AMI_ITest_updateLevel";
import { AMI_ITest_addItem } from "../../../../Message/Game/AMI_ITest_addItem";
import { AMI_ITest_updateOnlineTime } from "../../../../Message/Game/AMI_ITest_updateOnlineTime";
import { AMI_ITest_updateIssm } from "../../../../Message/Game/AMI_ITest_updateIssm";
import { SPoint } from "../../../../Message/Public/SPoint";
import { AMI_ITest_testFly } from "../../../../Message/Game/AMI_ITest_testFly";
import { AMI_IRole_updateCareer } from "../../../../Message/Game/AMI_IRole_updateCareer";
import { AMI_ITest_updateContinuousLoad } from "../../../../Message/Game/AMI_ITest_updateContinuousLoad";
import { AMI_ITest_rechargeGold } from "../../../../Message/Game/AMI_ITest_rechargeGold";
import { TextInput } from "../../../../fl/controls/TextInput";
import { AMI_ITest_changeDurable } from "../../../../Message/Game/AMI_ITest_changeDurable";
import { ItemConfig } from "../../resource/ItemConfig";
import { AMI_ITest_addBuffer } from "../../../../Message/Game/AMI_ITest_addBuffer";
import { AMI_ITest_updatePetLevel } from "../../../../Message/Game/AMI_ITest_updatePetLevel";
import { SkillConfig } from "../../resource/SkillConfig";
import { SkillInfo } from "../../model/SkillInfo";
import { SkillRules } from "../../rules/SkillRules";
import { AMI_IRole_learnSkill } from "../../../../Message/Game/AMI_IRole_learnSkill";
import { AMI_ITest_loadOperationOnlineInnerTest } from "../../../../Message/Game/AMI_ITest_loadOperationOnlineInnerTest";
import { RMIObject } from "../../../../Engine/RMI/RMIObject";
import { Dispatcher } from "../../../mvc/core/Dispatcher";
import { DataEvent } from "../../events/DataEvent";
import { EventName } from "../../mvc/EventName";
import { AMI_ITest_reloadConfigData } from "../../../../Message/Game/AMI_ITest_reloadConfigData";
import { AMI_ITest_addIntimate } from "../../../../Message/Game/AMI_ITest_addIntimate";
import { AMI_ITest_addTitle } from "../../../../Message/Game/AMI_ITest_addTitle";
import { AMI_ITest_loadSpecialActiveInnerTest } from "../../../../Message/Game/AMI_ITest_loadSpecialActiveInnerTest";
import { ClockManager } from "../../manager/ClockManager";
import { AMI_ITest_updateCreateDt } from "../../../../Message/Game/AMI_ITest_updateCreateDt";
import { AMI_ITest_changeGuildValue } from "../../../../Message/Game/AMI_ITest_changeGuildValue";
import { AMI_ITest_updateChangeSexDt } from "../../../../Message/Game/AMI_ITest_updateChangeSexDt";
import { AMI_ITest_updateExtendFlag } from "../../../../Message/Game/AMI_ITest_updateExtendFlag";
import { AMI_ITest_updatePetExplore } from "../../../../Message/Game/AMI_ITest_updatePetExplore";
import { SkillItem } from "../skill/SkillItem";
import { DateParser } from "../../../common/tools/DateParser";
import { AMI_ITest_updateDate } from "../../../../Message/Game/AMI_ITest_updateDate";
import { AMI_ITest_getTotalDay } from "../../../../Message/Game/AMI_ITest_getTotalDay";
import { AMI_ITest_modifyWorldLevel } from "../../../../Message/Game/AMI_ITest_modifyWorldLevel";
import { AMI_ITest_updateFromAddress } from "../../../../Message/Game/AMI_ITest_updateFromAddress";
import { AMI_ITest_updateRecharge } from "../../../../Message/Game/AMI_ITest_updateRecharge";
import { AMI_ITest_changeVIP } from "../../../../Message/Game/AMI_ITest_changeVIP";
import { AMI_ITest_addPetSkill } from "../../../../Message/Game/AMI_ITest_addPetSkill";
import { AMI_ITest_addPetBless } from "../../../../Message/Game/AMI_ITest_addPetBless";
import { ETestChangeDate } from "../../../../Message/Game/ETestChangeDate";
import { Speed } from "../../scene/map/Speed";
import { FreeShopModule } from "../../../../modules/FreeShopModule";
import { CallInterfaceModule } from "../../../../modules/CallInterfaceModule";
import { ResourceManager } from "../../../../com/gengine/resource/ResourceManager";
import { DebugWindow } from "../../../component/window/DebugWindow";
import { HatredTestModule } from "../../../../modules/HatredTestModule";
import { GScrollPane } from "../../../../com/mui/controls/GScrollPane";
import { GComboBox } from "../../../../com/mui/controls/GComboBox";
import { _EPriceUnitGold } from "../../../../EPrictUnit/_EPriceUnitGold";
import { _EPriceUnitGoldBind } from "../../../../EPrictUnit/_EPriceUnitGoldBind";
import { _EPriceUnitCoin } from "../../../../EPrictUnit/_EPriceUnitCoin";
import { _EPriceUnitCoinBind } from "../../../../EPrictUnit/_EPriceUnitCoinBind";
import { _EPriceUnitPoint } from "../../../../EPrictUnit/_EPriceUnitPoint";
import { _EPriceUnitHonour } from "../../../../EPrictUnit/_EPriceUnitHonour";
import { _EPriceUnitArena } from "../../../../EPrictUnit/_EPriceUnitArena";
import { _EPriceUnitInterHonour } from "../../../../EPrictUnit/_EPriceUnitInterHonour";
import { _EPriceUnitWuxingEnergyValue } from "../../../../EPrictUnit/_EPriceUnitWuxingEnergyValue";
import { _EPriceUnitPetCoin } from "../../../../EPrictUnit/_EPriceUnitPetCoin";
import { _EPriceUnitRobIslandCoin } from "../../../../EPrictUnit/_EPriceUnitRobIslandCoin";
import { _EPriceUnitSpiritCoin } from "../../../../EPrictUnit/_EPriceUnitSpiritCoin";
import { _EPriceUnitLadder } from "../../../../EPrictUnit/_EPriceUnitLadder";
import { _EPriceUnitMagicStone } from "../../../../EPrictUnit/_EPriceUnitMagicStone";
import { _EPriceUnitMerit } from "../../../../EPrictUnit/_EPriceUnitMerit";
import { _EPriceUnitBrokenSoul } from "../../../../EPrictUnit/_EPriceUnitBrokenSoul";
import { _EPriceUnitIntegralOne } from "../../../../EPrictUnit/_EPriceUnitIntegralOne";
import { _EPriceUnitIntegralTwo } from "../../../../EPrictUnit/_EPriceUnitIntegralTwo";
import { _EPriceUnitIntegralThree } from "../../../../EPrictUnit/_EPriceUnitIntegralThree";
import { _EPriceUnitCountryContribution } from "../../../../EPrictUnit/_EPriceUnitCountryContribution";
import { _EPriceUnitArenaCrossCoin } from "../../../../EPrictUnit/_EPriceUnitArenaCrossCoin";
import { _ETestChangeDateLeaderLastLogin } from "../../../../ETestChangeDate/_ETestChangeDateLeaderLastLogin";
import { _ETestChangeDateLastLogout } from "../../../../ETestChangeDate/_ETestChangeDateLastLogout";
import { 000 } from "../../../../00/000";
type int = number;
//class TestPanel
    
    export  class TestPanel extends BaseWindow
    {
        constructor()
        {
            super();
            setSize(900, 570);
            titleHeight = 26;
            return;
        }

        /* internal  */testForAchievement(): void
        {
            var tipses: Array<any>;
            var box: GBox;
            var gCombo: ComboBox;
            var addAmount1: GTextInput;
            var addAmount2: GTextInput;
            var addAmount3: GTextInput;
            var btn: Button;
            var onSelectedChanged: Function;
            var onFocus: Function;
            var submitAchievementTest: Function;

            var loc1;
            tipses = null;
            gCombo = null;
            addAmount1 = null;
            addAmount2 = null;
            addAmount3 = null;
            onSelectedChanged = null;
            onFocus = null;
            submitAchievementTest = null;
            onSelectedChanged = (arg1: Object /* flash.events.Event */): void
            {
                var loc1=int(gCombo.selectedItem["type"]);
                var loc2=tipses[loc1];
                var loc3;
                if ((loc3 = loc2.split("-"))[0]) 
                {
                    addAmount1.text = String(loc3[0]);
                }
                else 
                {
                    addAmount1.text = "";
                }
                if (loc3[1]) 
                {
                    addAmount2.text = String(loc3[1]);
                    addAmount2.toolTipData = HTMLUtil.addColor(String(loc3[1]), "#ffffff");
                }
                else 
                {
                    addAmount2.text = "";
                    addAmount2.toolTipData = null;
                }
                if (loc3[2]) 
                {
                    addAmount3.text = String(loc3[2]);
                }
                else 
                {
                    addAmount3.text = "";
                }
                return;
            }
            onFocus = (arg1: Object /* flash.events.FocusEvent */): void
            {
                var loc1=arg1.target as Object /* flash.text.TextField */;
                loc1.text = "";
                return;
            }
            submitAchievementTest = (arg1: Object /* flash.events.MouseEvent */): void
            {
                var loc1=parseInt(addAmount1.text);
                var loc2=parseInt(addAmount2.text);
                var loc3=parseInt(addAmount3.text);
                var loc4=int(gCombo.selectedItem["type"]);
                GameRMI.instance.iTestPrxHelper.modifyAboutAchieve_async(new AMI_ITest_modifyAboutAchieve(), loc4, loc1, loc2, loc3);
                return;
            }
            tipses = ["", "分钟数", "次数-taskGroup", "次数-copyType", "次数-类型(1:单人 2:精英)", "银票数", "次数-类型(1:崇拜 2:鄙视)", "次数-阵营(1：逍遥；2：星辰；3：苍穹)", "数目-类型(1:胜利数 2:连斩数 3:荣誉 4:杀人数)", "数目-类型(1:胜利数 2:推塔数 3:荣誉)", "数目-类型(1:打开宝藏 2:夺回宝藏)", "数目-关数-copyCode", "数目", "数目-大类"];
            box = this.addLeftBox();
            this.addTextFiled("成就：", box);
            gCombo = new ComboBox();
            gCombo.x = 200;
            gCombo.y = 370;
            gCombo.width = 100;
            gCombo.dataProvider = new DataProvider([{"label":"双修时间", "type": 1}, {"label":"完成任务", "type": 2}, {"label":"完成某个副本", "type": 3}, {"label":"完成某种副本", "type": 4}, {"label":"上交银票", "type": 5}, {"label":"崇拜鄙视", "type": 6}, {"label":"击杀阵营玩家", "type": 7}, {"label":"战场相关", "type": 8}, {"label":"新战场相关", "type": 9}, {"label":"宝藏相关", "type": 10}, {"label":"完成过关副本", "type": 11}, {"label":"杀boss", "type": 12}, {"label":"修改大类成就点", "type": 13}]);
            box.addChild(gCombo);
            addAmount1 = this.addTextInput(box, 40);
            addAmount1.text = "分钟数";
            box.addChild(addAmount1);
            addAmount2 = this.addTextInput(box, 80);
            addAmount2.text = "";
            box.addChild(addAmount2);
            addAmount3 = this.addTextInput(box, 40);
            addAmount3.text = "";
            box.addChild(addAmount3);
            btn = this.addButton("提交", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, submitAchievementTest);
            gCombo.addEventListener(flash.events.Event.CHANGE, onSelectedChanged);
            addAmount1.addEventListener(flash.events.FocusEvent.FOCUS_IN, onFocus);
            addAmount2.addEventListener(flash.events.FocusEvent.FOCUS_IN, onFocus);
            addAmount3.addEventListener(flash.events.FocusEvent.FOCUS_IN, onFocus);
            return;
        }

        /* internal  */getTotalDay(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("获取TotalDay：", loc1);
            var loc2=this.addButton("获取", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.onGetTotalBtnClickHandler);
            this._totalDayTxt = this.addTextInput(loc1);
            this._totalSecondTxt = this.addTextInput(loc1, 100);
            return;
        }

        /* internal  */modifyWorldLevel(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("修改世界等级：", loc1);
            this._worldLevelTxt = this.addTextInput(loc1, 80);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.onModifyWorldLevelBtnClickHandler);
            return;
        }

        /* internal  */cityChange(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("修改城市：", loc1);
            this._cityTxt = this.addTextInput(loc1, 80);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.onChangeCityClickHandler);
            return;
        }

        /* internal  */testLockScene(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("测试锁屏：", loc1);
            this.addTextFiled("X：", loc1, 30);
            this._lockSceneText_x = this.addTextInput(loc1);
            this.addTextFiled("Y：", loc1, 30);
            this._lockSceneText_y = this.addTextInput(loc1);
            var loc2=this.addButton("执行", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.lockSceneHandler);
            loc2 = this.addButton("复原", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.canceLockSceneHandler);
            return;
        }

        /* internal  */testVideo(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("测试录像：", loc1);
            this.addTextFiled("map：", loc1, 30);
            this._testVideoMap = this.addTextInput(loc1);
            var loc2=this.addButton("执行", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.videoHandler);
            loc2 = this.addButton("复原", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.cancelVideoHandler);
            return;
        }

        /* internal  */addButton(arg1: string, arg2: Object /* flash.display.DisplayObjectContainer */, arg3: number=60): GButton
        {
            var loc1;
            return loc1 = ObjCreate.createGButton(arg1, 0, 0, arg3, 22, arg2);
        }

        /* internal  */addTextInput(arg1: Object /* flash.display.DisplayObjectContainer */, arg2: number=60): GTextInput
        {
            var loc1=ObjCreate.createGTextInput(0, 0, arg2, 20, arg1);
            return loc1;
        }

        /* internal  */addTextFiled(arg1: string, arg2: Object /* flash.display.DisplayObjectContainer */, arg3: number=80): Object /* flash.text.TextField */
        {
            return ObjCreate.createTextField(arg1, 0, 0, arg3, 20, arg2);
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            this._rightBodySprite = new Object /* flash.display.Sprite */();
            this._rightBodySprite.x = 450;
            this._rightBodySprite.y = 40;
            this._rightBodySprite.mouseEnabled = false;
            this.addChild(this._rightBodySprite);
            this._leftBodySprite = new Object /* flash.display.Sprite */();
            this._leftBodySprite.mouseEnabled = false;
            this._leftBodySprite.x = 20;
            this._leftBodySprite.y = 40;
            this.addChild(this._leftBodySprite);
            this.addMoney();
            this.addExperience();
            this.addLevelUp();
            this.addItem();
            this.getTask();
            this.endTask();
            this.onlineTime();
            this.issm();
            this.fly();
            this.updateCareer();
            this.updateLoadDay();
            this.updateRecharge();
            this.durable();
            this.updateRechargeGold();
            this.addLookupItemCode();
            this.updatePetExplore();
            this.updateTestDate();
            this.testForAchievement();
            this.testForLv70Fb();
            this.testSpeed();
            this.addFreeShop();
            this.commonChage();
            this.addIntimate();
            this.addMagicTowerLa();
            this.addTitle();
            this.addBuff();
            this.petLevel();
            this.skillLearn();
            this.comTask();
            this.copy();
            this.updateCreateDt();
            this.addBloom();
            this.vip();
            this.petLearnSkill();
            this.petAddBless();
            this.changeSexDt();
            this.updateExtendFlag();
            this.getTotalDay();
            this.modifyWorldLevel();
            this.cityChange();
            this.testLockScene();
            this.testVideo();
            return;
        }

        /* internal  */addLeftBox(): GBox
        {
            var loc1=new GBox();
            loc1.horizontalGap = 5;
            loc1.direction = GBoxDirection.HORIZONTAL;
            loc1.x = 0;
            loc1.y = this._leftY;
            this._leftBodySprite.addChild(loc1);
            this._leftY = this._leftY + 25;
            return loc1;
        }

        /* internal  */commonChage(): void
        {
            var loc6=null;
            var loc1=this.addRightBox();
            this.addTextFiled("通用修改：", loc1);
            this._modifyfieldCB = ObjCreate.createGComboBox(100, 70, 140);
            this._modifyfieldCB.editable = false;
            var loc2=ModifyFieldConfig.instance.getAllList();
            var loc3=loc2.length;
            var loc4=0;
            while (loc4 < loc3) 
            {
                loc6 = loc2[loc4] as TModifyFieldConfig;
                this._modifyfieldCB.addItem({"label": loc6.des, "type": loc6.fieldtype});
                ++loc4;
            }
            loc1.addChild(this._modifyfieldCB);
            this._modifyfieldCB.drawNow();
            this._commonChangeInput = this.addTextInput(loc1);
            var loc5;
            (loc5 = this.addButton("提交", loc1)).addEventListener(flash.events.MouseEvent.CLICK, this.commonChangeHandler);
            return;
        }

        /* internal  */commonChangeHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.modifyFieldValue_async(new AMI_ITest_modifyFieldValue(), parseInt(this._modifyfieldCB.selectedItem["type"]), this._commonChangeInput.text);
            return;
        }

        /* internal  */videoHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameController.video.start(int(this._testVideoMap.text));
            return;
        }

        /* internal  */addMoney(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("加钱：", loc1);
            this._cb = ObjCreate.createGComboBox(100, 70, 80, 25);
            this._cb.editable = false;
            this._cb.addItem({"label":"元宝", "type": _EPriceUnitGold});
            this._cb.addItem({"label":"绑定元宝", "type": _EPriceUnitGoldBind});
            this._cb.addItem({"label":"铜钱", "type": _EPriceUnitCoin});
            this._cb.addItem({"label":"绑定铜钱", "type": _EPriceUnitCoinBind});
            this._cb.addItem({"label":"礼券", "type": _EPriceUnitPoint});
            this._cb.addItem({"label":"荣誉", "type": _EPriceUnitHonour});
            this._cb.addItem({"label":"竞技场金券", "type": _EPriceUnitArena});
            this._cb.addItem({"label":"跨服荣誉", "type": _EPriceUnitInterHonour});
            this._cb.addItem({"label":"五行能量", "type": _EPriceUnitWuxingEnergyValue});
            this._cb.addItem({"label":"珍宠币", "type": _EPriceUnitPetCoin});
            this._cb.addItem({"label":"仙岛银币", "type": _EPriceUnitRobIslandCoin});
            this._cb.addItem({"label":"附魂银币", "type": _EPriceUnitSpiritCoin});
            this._cb.addItem({"label":"天梯币", "type": _EPriceUnitLadder});
            this._cb.addItem({"label":"远古魔石", "type": _EPriceUnitMagicStone});
            this._cb.addItem({"label":"远古功勋", "type": _EPriceUnitMerit});
            this._cb.addItem({"label":"破碎元神", "type": _EPriceUnitBrokenSoul});
            this._cb.addItem({"label":"龙宫币", "type": _EPriceUnitIntegralOne});
            this._cb.addItem({"label":"天宫币", "type": _EPriceUnitIntegralTwo});
            this._cb.addItem({"label":"仙宫币", "type": _EPriceUnitIntegralThree});
            this._cb.addItem({"label":"国贡", "type": _EPriceUnitCountryContribution});
            this._cb.addItem({"label":"王者币", "type": _EPriceUnitArenaCrossCoin});
            loc1.addChild(this._cb);
            this._cb.drawNow();
            this._moneyAmount = this.addTextInput(loc1);
            this._moneyAmount.text = "5000";
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.addMoneyHandler);
            return;
        }

        /* internal  */cancelVideoHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameController.video.end();
            return;
        }

        /* internal  */lockSceneHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            Game.scene.tweenScrollRect(Number(this._lockSceneText_x.text), Number(this._lockSceneText_y.text), 2, null);
            return;
        }

        /* internal  */addExperience(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("加经验：", loc1);
            this._combo = new ComboBox();
            this._combo.x = 100;
            this._combo.y = 100;
            this._combo.width = 80;
            this._combo.dataProvider = new DataProvider([{"label":"血", "type": 1}, {"label":"法力", "type": 2}, {"label":"灵气", "type": 3}, {"label":"经验", "type": 4}, {"label":"怒气", "type": 5}]);
            loc1.addChild(this._combo);
            this._experienceAmount = this.addTextInput(loc1);
            this._experienceAmount.text = "5000";
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.addExperienceHandler);
            return;
        }

        /* internal  */onCleanPack(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=0;
            var loc4=null;
            var loc2=Cache.instance.pack.backPackCache._allItems;
            var loc3=loc2.length;
            loc1 = 0;
            while (loc1 < loc3) 
            {
                if ((loc4 = loc2[loc1]) is ItemData) 
                {
                    GameProxy.packProxy.remove(loc4.uid, loc4.posType);
                }
                ++loc1;
            }
            return;
        }

        /* internal  */addLevelUp(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("更新等级：", loc1);
            this._level = this.addTextInput(loc1);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.addLevelUpHandler);
            return;
        }

        /* internal  */canceLockSceneHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            Game.scene.stopTweenScrollRect(2);
            return;
        }

        /* internal  */comTaskHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.endTask_async(new AMI_ITest_endTask(), int(this._comtaskId.text), int(this._comNum));
            return;
        }

        /* internal  */addItem(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("加物品：", loc1);
            this._itemCode = this.addTextInput(loc1);
            this._itemAmount = this.addTextInput(loc1);
            this._itemAmount.text = "99";
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.addItemHandler);
            return;
        }

        /* internal  */onTestHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.test_async(new AMI_ITest_test());
            return;
        }

        /* internal  */addMoneyHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.addMoney_async(new AMI_ITest_addMoney(), parseInt(this._cb.selectedItem["type"]), parseInt(this._moneyAmount.text));
            return;
        }

        /* internal  */getTask(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("接任务：", loc1);
            this._npcId = this.addTextInput(loc1);
            this._taskId = this.addTextInput(loc1);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.addTaskHandler);
            loc1.addChild(loc2);
            return;
        }

        /* internal  */addExperienceHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=this._combo.selectedItem.type;
            if (loc1 != 4) 
            {
                if (loc1 != 5) 
                {
                    GameRMI.instance.iTestPrxHelper.addLifeOrMana_async(new AMI_ITest_addLifeOrMana(), loc1, parseInt(this._experienceAmount.text));
                }
                else 
                {
                    GameRMI.instance.iTestPrxHelper.addAnger_async(new AMI_ITest_addAnger(), parseInt(this._experienceAmount.text));
                }
            }
            else 
            {
                GameRMI.instance.iTestPrxHelper.addExperience_async(new AMI_ITest_addExperience(), parseInt(this._experienceAmount.text));
            }
            return;
        }

        /* internal  */addLevelUpHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.updateLevel_async(new AMI_ITest_updateLevel(), parseInt(this._level.text));
            return;
        }

        /* internal  */endTask(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("交任务：", loc1);
            this._endNpcId = this.addTextInput(loc1);
            this._endTaskId = this.addTextInput(loc1);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.endTaskHandler);
            return;
        }

        /* internal  */addItemHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.addItem_async(new AMI_ITest_addItem(), parseInt(this._itemCode.text), parseInt(this._itemAmount.text));
            return;
        }

        /* internal  */onlineTime(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("在线时间：", loc1);
            this._onlineTime = this.addTextInput(loc1);
            this.addTextFiled("分钟", loc1);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.updateOnlineTimeHandler);
            return;
        }

        /* internal  */addSearchItemHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.addItem_async(new AMI_ITest_addItem(), parseInt(this._itemCodeTxt.text), parseInt(this._addItemAmount.text));
            return;
        }

        /* internal  */issm(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("实名制：", loc1);
            this._issmText = this.addTextInput(loc1);
            this._issmText.restrict = "0-2";
            this._issmText.text = "1";
            this.addTextFiled("0未通过/1成年/2未成年未通过", loc1, 140);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.updateIsmHandler);
            return;
        }

        /* internal  */addTaskHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameProxy.taskProxy.getTaskReq(parseInt(this._taskId.text), parseInt(this._npcId.text));
            return;
        }

        /* internal  */endTaskHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameProxy.taskProxy.endTaskReq(parseInt(this._endTaskId.text), parseInt(this._endNpcId.text));
            return;
        }

        /* internal  */updateOnlineTimeHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.updateOnlineTime_async(new AMI_ITest_updateOnlineTime(), parseInt(this._onlineTime.text));
            return;
        }

        /* internal  */updateIsmHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.updateIssm_async(new AMI_ITest_updateIssm(), parseInt(this._issmText.text));
            return;
        }

        /* internal  */updateFlyHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=new SPoint();
            loc1.x = parseInt(this._flyText_x.text);
            loc1.y = parseInt(this._flyText_y.text);
            GameRMI.instance.iTestPrxHelper.testFly_async(new AMI_ITest_testFly(), parseInt(this._flyText_mapId.text), loc1, parseInt(this._proxyId.text), parseInt(this._serverId.text));
            return;
        }

        /* internal  */fly(): void
        {
            var loc1=this.addLeftBox();
            loc1.horizontalGap = 0;
            this.addTextFiled("MapId:", loc1, 40);
            this._flyText_mapId = this.addTextInput(loc1, 50);
            this.addTextFiled("X:", loc1, 20);
            this._flyText_x = this.addTextInput(loc1, 40);
            this.addTextFiled("Y:", loc1, 20);
            this._flyText_y = this.addTextInput(loc1, 40);
            this.addTextFiled("proxyId:", loc1, 45);
            this._proxyId = this.addTextInput(loc1, 40);
            this._proxyId.text = "0";
            this.addTextFiled("serverId:", loc1, 45);
            this._serverId = this.addTextInput(loc1, 40);
            this._serverId.text = "0";
            var loc2=this.addButton("提交", loc1, 50);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.updateFlyHandler);
            return;
        }

        /* internal  */updateCareerHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iRolePrxHelper.updateCareer_async(new AMI_IRole_updateCareer(), parseInt(this._careerComb.selectedItem["type"]));
            return;
        }

        /* internal  */updateCareer(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("改职业：", loc1);
            this._careerComb = new ComboBox();
            this._careerComb.x = 100;
            this._careerComb.y = 340;
            this._careerComb.width = 80;
            this._careerComb.dataProvider = new DataProvider([{"label":"全职业_0", "type": 0}, {"label":"武灵_1", "type": 1}, {"label":"幻羽_2", "type": 2}, {"label":"法尊_4", "type": 4}, {"label":"天机_8", "type": 8}, {"label":"武圣_16", "type": 16}, {"label":"弈神_32", "type": 32}, {"label":"法神_64", "type": 64}, {"label":"天神_128", "type": 128}, {"label":"新手_256", "type": 256}]);
            loc1.addChild(this._careerComb);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.updateCareerHandler);
            loc2 = this.addButton("测试", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.onTestHandler);
            return;
        }

        /* internal  */updateLoadDayHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.updateContinuousLoad_async(new AMI_ITest_updateContinuousLoad(), parseInt(this._dayTxtInput.text));
            return;
        }

        /* internal  */updateLoadDay(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("连续登陆天数：", loc1);
            this._dayTxtInput = this.addTextInput(loc1);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.updateLoadDayHandler);
            return;
        }

        /* internal  */updateRechargeGoldHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.rechargeGold_async(new AMI_ITest_rechargeGold(), parseInt(this._rechargeGoldTxt.text));
            return;
        }

        /* internal  */updateRecharge(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("充值：", loc1);
            this._rechargeTxt = this.addTextInput(loc1);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.updateRechargeHandler);
            return;
        }

        /* internal  */durable(): void
        {
            var box: GBox;
            var tiPos: TextInput;
            var tiDurable: TextInput;
            var btn: Button;
            var updateDurableHandler: Function;

            var loc1;
            tiPos = null;
            tiDurable = null;
            updateDurableHandler = null;
            updateDurableHandler = (arg1: Object /* flash.events.MouseEvent */): void
            {
                GameRMI.instance.iTestPrxHelper.changeDurable_async(new AMI_ITest_changeDurable(), 3, int(tiPos.text), int(tiDurable.text));
                return;
            }
            box = this.addLeftBox();
            this.addTextFiled("位置：", box);
            tiPos = this.addTextInput(box);
            tiPos.restrict = "0-9";
            this.addTextFiled("耐久度：", box);
            tiDurable = this.addTextInput(box);
            tiDurable.restrict = "0-9";
            btn = this.addButton("提交", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, updateDurableHandler);
            return;
        }

        /* internal  */lookupItemCodeHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc3=null;
            var loc1=this._itemNameTxt.text;
            var loc2=ItemConfig.instance.getAllItemMap();
            var loc4="";
            var loc5=0;
            var loc6=loc2;
            for(loc3 of loc6) 
            {
                if (loc3.item.name != loc1) 
                {
                    continue;
                }
                loc4 = loc4 + loc3.item.code;
                break;
            }
            this._itemCodeTxt.text = loc4;
            return;
        }

        /* internal  */updateRechargeGold(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("充值元宝：", loc1);
            this._rechargeGoldTxt = this.addTextInput(loc1);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.updateRechargeGoldHandler);
            return;
        }

        /* internal  */addBuffHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.addBuffer_async(new AMI_ITest_addBuffer(), parseInt(this._buffText.text));
            return;
        }

        /* internal  */setPetLevelHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.updatePetLevel_async(new AMI_ITest_updatePetLevel(), this._petUidText.text, parseInt(this._petLevelText.text));
            return;
        }

        /* internal  */setSkillLevelHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=int(this._skillIdText.text);
            var loc2=SkillConfig.instance.getInfoByName(loc1);
            if (loc2 == null) 
            {
                return;
            }
            var loc3;
            (loc3 = new SkillInfo()).learned = true;
            loc3.tSkill = loc2;
            loc3.position = SkillRules.getPostionById(loc2.skillId);
            this._skillItem.data = loc3;
            GameRMI.instance.iRolePrxHelper.learnSkill_async(new AMI_IRole_learnSkill(), loc1);
            return;
        }

        /* internal  */addLookupItemCode(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("物品名称：", loc1);
            this._itemNameTxt = this.addTextInput(loc1, 80);
            var loc2=this.addButton("查询", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.lookupItemCodeHandler);
            this._itemCodeTxt = this.addTextInput(loc1, 80);
            this._addItemAmount = this.addTextInput(loc1, 30);
            this._addItemAmount.text = "99";
            var loc3=this.addButton("提交", loc1);
            loc3.addEventListener(flash.events.MouseEvent.CLICK, this.addSearchItemHandler);
            return;
        }

        /* internal  */onLoadOperationOnlineInnerTestHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.loadOperationOnlineInnerTest_async(new AMI_ITest_loadOperationOnlineInnerTest());
            return;
        }

        /* internal  */leaveCopyHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameProxy.copy.leftGroup_async();
            return;
        }

        /* internal  */updatePetExplore(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("清空闯关：", loc1);
            this._exTypeComb = new ComboBox();
            this._exTypeComb.x = 200;
            this._exTypeComb.y = 340;
            this._exTypeComb.width = 100;
            this._exTypeComb.dataProvider = new DataProvider([{"label":"清空所有信息", "type": 0}, {"label":"设置当前关卡", "type": 1}, {"label":"设置最高关卡", "type": 2}, {"label":"使用卡片", "type": 3}]);
            loc1.addChild(this._exTypeComb);
            this._exValueInput = this.addTextInput(loc1, 100);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.updatePetExploreHandler);
            return;
        }

        /* internal  */addRightBox(): GBox
        {
            var loc1=new GBox();
            loc1.horizontalGap = 5;
            loc1.direction = GBoxDirection.HORIZONTAL;
            loc1.x = this._rightX;
            loc1.y = this._rightY;
            this._rightBodySprite.addChild(loc1);
            this._rightY = this._rightY + 25;
            return loc1;
        }

        /* internal  */addToFullHealthHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var e: Object /* flash.events.MouseEvent */;
            var health: int;
            var mana: int;
            var onAddLifeSuccess: Function;

            var loc1;
            onAddLifeSuccess = null;
            e = arg1;
            onAddLifeSuccess = (arg1: RMIObject): void
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.Skill_CoolDown_Clear));
                Dispatcher.dispatchEvent(new DataEvent(EventName.ItemMomentDrug_CoolDown_Clear));
                return;
            }
            health = Cache.instance.role.entityInfo.maxLife - Cache.instance.role.entityInfo.life;
            mana = Cache.instance.role.entityInfo.maxMana - Cache.instance.role.entityInfo.mana;
            if (health) 
            {
                GameRMI.instance.iTestPrxHelper.addLifeOrMana_async(new AMI_ITest_addLifeOrMana(onAddLifeSuccess), 1, health);
            }
            if (mana) 
            {
                GameRMI.instance.iTestPrxHelper.addLifeOrMana_async(new AMI_ITest_addLifeOrMana(), 2, mana);
            }
            return;
        }

        /* internal  */reloadConfigDataHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.reloadConfigData_async(new AMI_ITest_reloadConfigData());
            return;
        }

        /* internal  */addIntimate(): void
        {
            var box: GBox;
            var tiName: GTextInput;
            var tiIntimate: GTextInput;
            var btn: GButton;
            var onClickChangeIntimate: Function;

            var loc1;
            tiName = null;
            tiIntimate = null;
            onClickChangeIntimate = null;
            onClickChangeIntimate = (): void
            {
                GameRMI.instance.iTestPrxHelper.addIntimate_async(new AMI_ITest_addIntimate(), tiName.text, int(tiIntimate.text));
                return;
            }
            box = this.addRightBox();
            this.addTextFiled("修改亲密度", box, 80);
            this.addTextFiled("好友名称", box, 60);
            tiName = this.addTextInput(box);
            this.addTextFiled("亲密度", box, 45);
            tiIntimate = this.addTextInput(box);
            tiIntimate.restrict = "0-9 \\-";
            btn = this.addButton("修改", box);
            box.validateNow();
            btn.addEventListener(flash.events.MouseEvent.CLICK, onClickChangeIntimate);
            return;
        }

        /* internal  */addMagicTowerLa(): void
        {
            var box: GBox;
            var copyCode: GTextInput;
            var layerNum: GTextInput;
            var extraTime: GTextInput;
            var btn: GButton;
            var onClickChangeIntimate: Function;

            var loc1;
            copyCode = null;
            layerNum = null;
            extraTime = null;
            onClickChangeIntimate = null;
            onClickChangeIntimate = (): void
            {
                var loc1=parseInt(copyCode.text);
                if (loc1 != 168) 
                {
                    if (loc1 != 171) 
                    {
                        if (loc1 != 172) 
                        {
                            if (layerNum.text != "") 
                            {
                                GameProxy.copy.enterMagicTower(parseInt(copyCode.text), parseInt(layerNum.text), parseInt(extraTime.text));
                            }
                            else 
                            {
                                GameProxy.copy.enterCopyEx_async(parseInt(copyCode.text), parseInt(extraTime.text));
                            }
                        }
                        else 
                        {
                            GameProxy.copy.getCrossSeaList();
                        }
                    }
                    else 
                    {
                        Dispatcher.dispatchEvent(new DataEvent(EventName.KingChampionShipShowEntranceReq));
                    }
                }
                else 
                {
                    Dispatcher.dispatchEvent(new DataEvent(EventName.EatBeansAskEnter));
                }
                return;
            }
            box = this.addRightBox();
            this.addTextFiled("进入爬塔副本", box, 80);
            this.addTextFiled("副本id", box, 48);
            copyCode = this.addTextInput(box, 40);
            this.addTextFiled("层数", box, 35);
            layerNum = this.addTextInput(box, 40);
            this.addTextFiled("次数", box, 35);
            extraTime = this.addTextInput(box, 40);
            extraTime.text = "0";
            btn = this.addButton("进入", box);
            box.validateNow();
            btn.addEventListener(flash.events.MouseEvent.CLICK, onClickChangeIntimate);
            return;
        }

        /* internal  */addTitle(): void
        {
            var box: GBox;
            var titleId: GTextInput;
            var btn: GButton;
            var onClickAddTitle: Function;
            var btn2: GButton;
            var onLoadSpecialActiveInnerHandler: Function;

            var loc1;
            titleId = null;
            onClickAddTitle = null;
            onLoadSpecialActiveInnerHandler = null;
            onClickAddTitle = (): void
            {
                GameRMI.instance.iTestPrxHelper.addTitle_async(new AMI_ITest_addTitle(), int(titleId.text));
                return;
            }
            onLoadSpecialActiveInnerHandler = (): void
            {
                GameRMI.instance.iTestPrxHelper.loadSpecialActiveInnerTest_async(new AMI_ITest_loadSpecialActiveInnerTest());
                return;
            }
            box = this.addRightBox();
            this.addTextFiled("添加称号", box, 80);
            titleId = this.addTextInput(box, 80);
            titleId.restrict = "0-9";
            btn = this.addButton("添加", box, 60);
            box.validateNow();
            btn.addEventListener(flash.events.MouseEvent.CLICK, onClickAddTitle);
            btn2 = this.addButton("加载特殊活动", box, 100);
            btn2.x = 300;
            btn2.addEventListener(flash.events.MouseEvent.CLICK, onLoadSpecialActiveInnerHandler);
            return;
        }

        /* internal  */updateCreateDtHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=ClockManager.instance.nowDate;
            var loc2=Number(this._yearText.text);
            var loc3=Number(this._monthText.text);
            var loc4=Number(this._dayText.text);
            loc1.setFullYear(loc2, (loc3 - 1), loc4);
            GameRMI.instance.iTestPrxHelper.updateCreateDt_async(new AMI_ITest_updateCreateDt(), loc1);
            return;
        }

        /* internal  */addBuff(): void
        {
            var box: GBox;
            var label: Object /* flash.text.TextField */;
            var btn: Button;
            var btn2: Button;
            var onBtn2ClickHandler: Function;

            var loc1;
            onBtn2ClickHandler = null;
            onBtn2ClickHandler = (arg1: Object /* flash.events.MouseEvent */): void
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.NPCStatuePlayerReq));
                return;
            }
            box = this.addRightBox();
            label = this.addTextFiled("Buff:", box);
            this._buffText = this.addTextInput(box, 90);
            btn = this.addButton("提交", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, this.addBuffHandler);
            btn2 = this.addButton("跨服查看", box, 60);
            btn2.x = 300;
            btn2.addEventListener(flash.events.MouseEvent.CLICK, onBtn2ClickHandler);
            return;
        }

        /* internal  */addBloomHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.changeGuildValue_async(new AMI_ITest_changeGuildValue(), parseInt(this._gCombo.selectedItem["type"]), parseInt(this._addAmount.text));
            return;
        }

        /* internal  */updateChangeSexDtHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=ClockManager.instance.nowDate;
            var loc2=Number(this._yearSexText.text);
            var loc3=Number(this._monthSexText.text);
            var loc4=Number(this._daySexText.text);
            loc1.setFullYear(loc2, (loc3 - 1), loc4);
            GameRMI.instance.iTestPrxHelper.updateChangeSexDt_async(new AMI_ITest_updateChangeSexDt(), loc1);
            return;
        }

        /* internal  */petLevel(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("宠物等级 uid:", loc1);
            this._petUidText = this.addTextInput(loc1);
            this.addTextFiled("level:", loc1);
            this._petLevelText = this.addTextInput(loc1);
            loc1.addChild(this._petLevelText);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.setPetLevelHandler);
            return;
        }

        /* internal  */onExtendFlagBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.updateExtendFlag_async(new AMI_ITest_updateExtendFlag(), parseInt(this._extendFlag.text));
            return;
        }

        /* internal  */updatePetExploreHandler(arg1: Object /* flash.events.Event */): void
        {
            GameRMI.instance.iTestPrxHelper.updatePetExplore_async(new AMI_ITest_updatePetExplore(), parseInt(this._exTypeComb.selectedItem["type"]), parseInt(this._exValueInput.text));
            return;
        }

        /* internal  */skillLearn(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("技能ID:", loc1);
            this._skillIdText = this.addTextInput(loc1);
            loc1.addChild(this._skillIdText);
            this._skillItem = new SkillItem();
            this._skillItem.x = 195;
            this._skillItem.y = 460;
            loc1.addChild(this._skillItem);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.setSkillLevelHandler);
            var loc3=this.addButton("加载在线操作记录", loc1, 130);
            loc3.addEventListener(flash.events.MouseEvent.CLICK, this.onLoadOperationOnlineInnerTestHandler);
            return;
        }

        /* internal  */updateDateHandler(arg1: Object /* flash.events.Event */): void
        {
            var loc1=DateParser.strToDate(this._dateValueInput.text);
            var loc2;
            var loc3=((loc2 = loc1).month - 1);
            loc2.month = loc3;
            GameRMI.instance.iTestPrxHelper.updateDate_async(new AMI_ITest_updateDate(), loc1, parseInt(this._dateTypeComb.selectedItem["type"]), this._extendValueInput.text);
            return;
        }

        /* internal  */onGetTotalBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.getTotalDay_async(new AMI_ITest_getTotalDay(this.getTotalDaySuccess));
            return;
        }

        /* internal  */comTask(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("完成任务：", loc1);
            this._comtaskId = this.addTextInput(loc1);
            this._comNum = this.addTextInput(loc1);
            this._comNum.text = "1";
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.comTaskHandler);
            return;
        }

        /* internal  */copy(): void
        {
            var loc1=this.addRightBox();
            var loc2=this.addButton("离开副本队伍", loc1, 90);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.leaveCopyHandler);
            var loc3=this.addButton("满红满蓝", loc1, 90);
            loc3.addEventListener(flash.events.MouseEvent.CLICK, this.addToFullHealthHandler);
            var loc4;
            (loc4 = this.addButton("热更新配置文件", loc1, 120)).addEventListener(flash.events.MouseEvent.CLICK, this.reloadConfigDataHandler);
            return;
        }

        /* internal  */onModifyWorldLevelBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.modifyWorldLevel_async(new AMI_ITest_modifyWorldLevel(), parseInt(this._worldLevelTxt.text));
            return;
        }

        /* internal  */onChangeCityClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.updateFromAddress_async(new AMI_ITest_updateFromAddress(), this._cityTxt.text);
            return;
        }

        /* internal  */getTotalDaySuccess(arg1: AMI_ITest_getTotalDay, arg2: int, arg3: int): void
        {
            this._totalDayTxt.text = arg2 + "";
            this._totalSecondTxt.text = arg3 + "";
            return;
        }

        /* internal  */updateCreateDt(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("创号时间", loc1, 60);
            this.addTextFiled("年：", loc1, 20);
            this._yearText = this.addTextInput(loc1, 60);
            this.addTextFiled("月：", loc1, 20);
            this._monthText = this.addTextInput(loc1, 30);
            this.addTextFiled("日：", loc1, 20);
            this._dayText = this.addTextInput(loc1, 30);
            var loc2=this.addButton("修改", loc1, 40);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.updateCreateDtHandler);
            return;
        }

        /* internal  */updateRechargeHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameRMI.instance.iTestPrxHelper.updateRecharge_async(new AMI_ITest_updateRecharge(), parseInt(this._rechargeTxt.text));
            return;
        }

        /* internal  */addBloom(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("加贡献：", loc1);
            this._gCombo = new ComboBox();
            this._gCombo.x = 100;
            this._gCombo.y = 580;
            this._gCombo.width = 80;
            this._gCombo.dataProvider = new DataProvider([{"label":"繁荣", "type": 1}, {"label":"资金", "type": 3}, {"label":"今日贡献", "type": 4}, {"label":"本周贡献", "type": 5}, {"label":"总贡献", "type": 6}, {"label":"当前贡献", "type": 7}, {"label":"刷新物品", "type": 8}, {"label":"摇钱树成熟", "type": 9}, {"label":"摇钱树刷虫", "type": 10}, {"label":"重置仙盟宴会", "type": 11}]);
            loc1.addChild(this._gCombo);
            this._addAmount = this.addTextInput(loc1);
            this._addAmount.text = "50000";
            loc1.addChild(this._addAmount);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.addBloomHandler);
            return;
        }

        /* internal  */vip(): void
        {
            var box: GBox;
            var combo: ComboBox;
            var monthText: TextInput;
            var dayText: TextInput;
            var btn: Button;
            var changeVIPHandler: Function;

            var loc1;
            combo = null;
            monthText = null;
            dayText = null;
            changeVIPHandler = null;
            changeVIPHandler = (): void
            {
                var loc1=new Date();
                var loc2=Number(2012);
                var loc3=Number(monthText.text);
                var loc4=Number(dayText.text);
                loc1.setFullYear(loc2, (loc3 - 1), loc4);
                GameRMI.instance.iTestPrxHelper.changeVIP_async(new AMI_ITest_changeVIP(), parseInt(combo.selectedItem["type"]), loc1);
                return;
            }
            box = this.addRightBox();
            this.addTextFiled("修改VIP状态：", box);
            combo = new ComboBox();
            combo.x = 100;
            combo.y = 610;
            combo.width = 80;
            combo.dataProvider = new DataProvider([{"label":"无VIP", "type": 0}, {"label":"周VIP", "type": 3}, {"label":"月VIP", "type": 6}, {"label":"半年VIP", "type": 9}]);
            box.addChild(combo);
            this.addTextFiled("月：", box, 20);
            monthText = this.addTextInput(box, 30);
            this.addTextFiled("日：", box, 20);
            dayText = this.addTextInput(box, 30);
            btn = this.addButton("提交", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, changeVIPHandler);
            return;
        }

        /* internal  */petLearnSkill(): void
        {
            var box: GBox;
            var skillIdTxt: TextInput;
            var btn: GButton;
            var onLearBtnClickHandler: Function;

            var loc1;
            skillIdTxt = null;
            onLearBtnClickHandler = null;
            onLearBtnClickHandler = (arg1: Object /* flash.events.Event */): void
            {
                var loc1=int(skillIdTxt.text);
                GameRMI.instance.iTestPrxHelper.addPetSkill_async(new AMI_ITest_addPetSkill(), loc1);
                return;
            }
            box = this.addRightBox();
            this.addTextFiled("宠物学习技能：", box);
            skillIdTxt = this.addTextInput(box);
            btn = this.addButton("学习", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, onLearBtnClickHandler);
            return;
        }

        /* internal  */petAddBless(): void
        {
            var box: GBox;
            var blessTxt: TextInput;
            var _cb: ComboBox;
            var btn: GButton;
            var onAddBtnClickHandler: Function;

            var loc1;
            blessTxt = null;
            _cb = null;
            onAddBtnClickHandler = null;
            onAddBtnClickHandler = (arg1: Object /* flash.events.Event */): void
            {
                var loc1=int(blessTxt.text);
                var loc2=parseInt(_cb.selectedItem["type"]);
                GameRMI.instance.iTestPrxHelper.addPetBless_async(new AMI_ITest_addPetBless(), loc2, loc1);
                return;
            }
            box = this.addRightBox();
            this.addTextFiled("宠物增加祝福：", box);
            blessTxt = this.addTextInput(box);
            _cb = new ComboBox();
            _cb.x = 100;
            _cb.y = 610;
            _cb.width = 80;
            _cb.editable = false;
            _cb.addItem({"label":"灵性", "type": 1});
            _cb.addItem({"label":"成长", "type": 2});
            _cb.addItem({"label":"资质", "type": 3});
            box.addChild(_cb);
            btn = this.addButton("增加", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, onAddBtnClickHandler);
            return;
        }

        /* internal  */changeSexDt(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("变性时间", loc1, 60);
            this.addTextFiled("年：", loc1, 20);
            this._yearSexText = this.addTextInput(loc1, 60);
            this._yearSexText.text = "2012";
            this.addTextFiled("月：", loc1, 20);
            this._monthSexText = this.addTextInput(loc1, 30);
            this._monthSexText.text = "8";
            this.addTextFiled("日：", loc1, 20);
            this._daySexText = this.addTextInput(loc1, 30);
            this._daySexText.text = "1";
            var loc2=this.addButton("修改", loc1, 40);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.updateChangeSexDtHandler);
            return;
        }

        /* internal  */updateExtendFlag(): void
        {
            var loc1=this.addRightBox();
            this.addTextFiled("修改玩家flag：", loc1);
            this._extendFlag = this.addTextInput(loc1);
            var loc2=this.addButton("修改", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.onExtendFlagBtnClickHandler);
            return;
        }

        /* internal  */updateTestDate(): void
        {
            var loc1=this.addLeftBox();
            this.addTextFiled("设置日期：", loc1);
            this._dateTypeComb = new ComboBox();
            this._dateTypeComb.x = 200;
            this._dateTypeComb.y = 340;
            this._dateTypeComb.width = 100;
            this._dateTypeComb.dataProvider = new DataProvider([{"label":"盟主最后登陆", "type": _ETestChangeDateLeaderLastLogin}, {"label":"成员最后登陆", "type": _ETestChangeDateLastLogout}]);
            loc1.addChild(this._dateTypeComb);
            this._dateValueInput = this.addTextInput(loc1, 80);
            this._dateValueInput.text = "2012-03-01 00: 00: 000";
            this._extendValueInput = this.addTextInput(loc1, 80);
            var loc2=this.addButton("提交", loc1);
            loc2.addEventListener(flash.events.MouseEvent.CLICK, this.updateDateHandler);
            return;
        }

        /* internal  */testForLv70Fb(): void
        {
            var box: GBox;
            var addAmount1: GTextInput;
            var btn: Button;
            var onFocus: Function;
            var submitHandler: Function;

            var loc1;
            addAmount1 = null;
            onFocus = null;
            submitHandler = null;
            onFocus = (arg1: Object /* flash.events.FocusEvent */): void
            {
                var loc1=arg1.target as Object /* flash.text.TextField */;
                loc1.text = "";
                return;
            }
            submitHandler = (arg1: Object /* flash.events.MouseEvent */): void
            {
                var loc1=parseInt(addAmount1.text);
                if (loc1 <= 0) 
                {
                    return;
                }
                Dispatcher.dispatchEvent(new DataEvent(EventName.Lv70DramaStartNextStep, loc1));
                return;
            }
            box = this.addLeftBox();
            this.addTextFiled("70剧情副本：", box);
            addAmount1 = this.addTextInput(box, 40);
            addAmount1.text = "step";
            box.addChild(addAmount1);
            btn = this.addButton("提交", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, submitHandler);
            addAmount1.addEventListener(flash.events.FocusEvent.FOCUS_IN, onFocus);
            return;
        }

        /* internal  */testSpeed(): void
        {
            var box: GBox;
            var addAmount1: GTextInput;
            var btn: Button;
            var submitHandler: Function;

            var loc1;
            addAmount1 = null;
            submitHandler = null;
            submitHandler = (arg1: Object /* flash.events.MouseEvent */): void
            {
                Speed.SpeedUp = parseFloat(addAmount1.text);
                return;
            }
            box = this.addLeftBox();
            this.addTextFiled("移动速度加倍：", box);
            addAmount1 = this.addTextInput(box, 40);
            addAmount1.text = "1";
            box.addChild(addAmount1);
            btn = this.addButton("提交", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, submitHandler);
            return;
        }

        /* internal  */addFreeShop(): void
        {
            var box: GBox;
            var btn: Button;
            var btn2: Button;
            var onOpenFreeShop: Function;
            var onCallInterface: Function;

            var loc1;
            onOpenFreeShop = null;
            onCallInterface = null;
            onOpenFreeShop = (arg1: Object /* flash.events.MouseEvent */): void
            {
                if (_freeShop == null) 
                {
                    _freeShop = new FreeShopModule();
                }
                _freeShop.show();
                return;
            }
            onCallInterface = (arg1: Object /* flash.events.MouseEvent */): void
            {
                if (_interface == null) 
                {
                    _interface = new CallInterfaceModule();
                }
                _interface.show();
                return;
            }
            box = this.addLeftBox();
            btn = this.addButton("免费商店", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, onOpenFreeShop);
            btn2 = this.addButton("接口调用", box);
            btn2.addEventListener(flash.events.MouseEvent.CLICK, onCallInterface);
            btn = this.addButton("清理背包", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, this.onCleanPack);
            btn = this.addButton("检测图标", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, this.onCheckIconClick);
            btn = this.addButton("仇恨列表", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, this.onHatredBtnClick);
            return;
        }

        /* internal  */onCheckIconClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc2=0;
            var loc3=null;
            var loc1="\n没有图标：\n";
            var loc4=ItemConfig.instance.getAllItemMap();
            var loc5=0;
            var loc6=loc4;
            for(loc3 of loc6) 
            {
                if (!(!(loc3.item.icon == "") && !ResourceManager.hasInfoByName(loc3.url))) 
                {
                    continue;
                }
                loc1 = loc1 + (loc3.url + "    \t" + loc3.item.name + "\n");
            }
            DebugWindow.instance.error(loc1);
            DebugWindow.instance.show();
            return;
        }

        /* internal  */onHatredBtnClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._hatredList == null) 
            {
                this._hatredList = new HatredTestModule();
            }
            this._hatredList.show();
            return;
        }

        /* internal  */testClearCd(): void
        {
            var box: GBox;
            var btn: Button;
            var clearCdHandler: Function;

            var loc1;
            clearCdHandler = null;
            clearCdHandler = (arg1: Object /* flash.events.MouseEvent */): void
            {
                return;
            }
            box = this.addLeftBox();
            btn = this.addButton("清除技能Cd", box);
            btn.addEventListener(flash.events.MouseEvent.CLICK, clearCdHandler);
            return;
        }

        /* internal */ /* var */_scrollPane: GScrollPane;

        /* internal */ /* var */_leftBodySprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_rightBodySprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_freeShop: FreeShopModule;

        /* internal */ /* var */_hatredList: HatredTestModule;

        /* internal */ /* var */_interface: CallInterfaceModule;

        /* internal */ /* var */_leftY: number=0;

        /* internal */ /* var */_cb: ComboBox;

        /* internal */ /* var */_moneyAmount: TextInput;

        /* internal */ /* var */_combo: ComboBox;

        /* internal */ /* var */_experienceAmount: TextInput;

        /* internal */ /* var */_itemCode: TextInput;

        /* internal */ /* var */_itemAmount: TextInput;

        /* internal */ /* var */_taskId: TextInput;

        /* internal */ /* var */_npcId: TextInput;

        /* internal */ /* var */_endTaskId: TextInput;

        /* internal */ /* var */_endNpcId: TextInput;

        /* internal */ /* var */_onlineTime: TextInput;

        /* internal */ /* var */_issmText: TextInput;

        /* internal */ /* var */_flyText_mapId: TextInput;

        /* internal */ /* var */_flyText_x: TextInput;

        /* internal */ /* var */_flyText_y: TextInput;

        /* internal */ /* var */_proxyId: TextInput;

        /* internal */ /* var */_serverId: TextInput;

        /* internal */ /* var */_careerComb: ComboBox;

        /* internal */ /* var */_dayTxtInput: TextInput;

        /* internal */ /* var */_rechargeTxt: TextInput;

        /* internal */ /* var */_rechargeGoldTxt: TextInput;

        /* internal */ /* var */_itemNameTxt: TextInput;

        /* internal */ /* var */_itemCodeTxt: TextInput;

        /* internal */ /* var */_addItemAmount: TextInput;

        /* internal */ /* var */_exTypeComb: ComboBox;

        /* internal */ /* var */_exValueInput: GTextInput;

        /* internal */ /* var */_rightY: number=0;

        /* internal */ /* var */_rightX: number=0;

        /* internal */ /* var */_buffText: TextInput;

        /* internal */ /* var */_petLevelText: TextInput;

        /* internal */ /* var */_petUidText: TextInput;

        /* internal */ /* var */_skillIdText: TextInput;

        /* internal */ /* var */_skillItem: SkillItem;

        /* internal */ /* var */_comtaskId: TextInput;

        /* internal */ /* var */_comNum: TextInput;

        /* internal */ /* var */_yearText: TextInput;

        /* internal */ /* var */_monthText: TextInput;

        /* internal */ /* var */_dayText: TextInput;

        /* internal */ /* var */_dateValueInput: GTextInput;

        /* internal */ /* var */_extendValueInput: GTextInput;

        /* internal */ /* var */_totalDayTxt: TextInput;

        /* internal */ /* var */_totalSecondTxt: TextInput;

        /* internal */ /* var */_monthSexText: TextInput;

        /* internal */ /* var */_worldLevelTxt: TextInput;

        /* internal */ /* var */_daySexText: TextInput;

        /* internal */ /* var */_cityTxt: TextInput;

        /* internal */ /* var */_addAmount: TextInput;

        /* internal */ /* var */_lockSceneText_x: TextInput;

        /* internal */ /* var */_lockSceneText_y: TextInput;

        /* internal */ /* var */_extendFlag: TextInput;

        /* internal */ /* var */_testVideoMap: TextInput;

        /* internal */ /* var */_gCombo: ComboBox;

        /* internal */ /* var */_modifyfieldCB: GComboBox;

        /* internal */ /* var */_commonChangeInput: TextInput;

        /* internal */ /* var */_yearSexText: TextInput;

        /* internal */ /* var */_dateTypeComb: ComboBox;

        /* internal */ /* var */_level: TextInput;
    }
